<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div>
			<div>
				<div>
					<div >
						<div id="searchForm">
							<input type="text" name="name" />
							<input type="radio" name="sex" value="0" />男
							<input type="radio" name="sex" value="1" />女
							<input type="text" name="money" />
							<select name="userId">
								<option value=""></option>
								<option value="101">张三</option>
								<option value="102">李四</option>
							</select>
						</div>
					</div>


					<table id="mainId">
						<thead>
							<tr>
								<td>姓名</td>
								<td>积分</td>
								<td>等级</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><input name="userNam" /></td>
								<td><input name="jifen" /></td>
								<td>
									<select name="level">
										<option value=""></option>
										<option value="001">vip1</option>
										<option value="002">svip5</option>
									</select>
								</td>
							</tr>
							<tr>
								<td><input name="userNam" /></td>
								<td><input name="jifen" /></td>
								<td>
									<select name="level">
										<option value=""></option>
										<option value="001">vip1</option>
										<option value="002">svip5</option>
									</select>
								</td>
							</tr>
						</tbody>
					</table>

					<button onclick="getData()">点击获取数据</button>
				</div>
			</div>
		</div>
	</body>
	<script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
	<script type="application/javascript" src="static/js/tableSerializeV1.1.js"></script>
	<script>
		function getData() {
			console.log($("#searchForm").serializeSearch());
			console.log($("#mainId").serializeTable());
		}
	</script>
</html>
